#coding=utf-8

from django.contrib import admin
from vote.models import Vote, VoteStat

class VoteAdmin(admin.ModelAdmin):
	list_display = ('id', 'question', 'user', 'result', 'has_opinion', 'is_star',  'created_time')


class VoteStatAdmin(admin.ModelAdmin):
    list_display = ("question", "vote_count", "agree_count", "disagree_count", "neutral_count", "updated_time")

admin.site.register(Vote, VoteAdmin)
admin.site.register(VoteStat, VoteStatAdmin)